package com.itheima.neibulei6;

public class Demo02 {

    public static void main(String[] args) {
        A a = new A(){
            @Override
            public void sing() {
                System.out.println("自己的sing");
            }
        };
       a.sing();
    }
}

class A {
    public void sing(){
        System.out.println("A 的sing");
    }
}